package br.ufrn.sigtcc.model.entidades;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;


@Entity
@Table(name="ALUNO")
@DiscriminatorValue("aluno")
public class Aluno extends Pessoa implements Serializable {


	@Column(unique = true, nullable = false, length = 9)
	private String matricula;
	
	@ManyToOne
	@JoinColumn(name="curso_fk", nullable = false)
	private Curso curso;
	
	@OneToMany
	@JoinColumn(name="proponente_tcc_fk")
	private List<PropostaTCC> propostasTCC;

	@Transient
	private static final long serialVersionUID = 1L;

	public Aluno() {
		
		super();
	}   
	
	public String getMatricula() {
		return this.matricula;
	}

	public void setMatricula(String matricula) {
		this.matricula = matricula;
	}

	public Curso getCurso() {
		return curso;
	}

	public void setCurso(Curso curso) {
		this.curso = curso;
	}

	public List<PropostaTCC> getPropostasTCC() {
		return propostasTCC;
	}

	public void setPropostasTCC(List<PropostaTCC> propostasTCC) {
		this.propostasTCC = propostasTCC;
	}
   
	
	
}
